﻿<controls:ChildWindow
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" x:Class="SharePointCSVImporter.ColumnRulesPopup"
           Width="700"
           Title="ColumnRulesPopup">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition Height="40" />
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal">
            <TextBlock Text="CSV Column: " />
            <TextBlock Text="{Binding Path=CsvColumnName}" MinWidth="50" />
            <TextBlock Text=" mapped to: " />
            <TextBlock Text="{Binding Path=DestinationColumn}" MinWidth="50" />
        </StackPanel>
        <StackPanel Grid.Row="1">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="Transformation Type: "></TextBlock>
                <ComboBox Name="TransformTypeComboBox" MinWidth="100" SelectionChanged="TransformTypeComboBox_SelectionChanged" >
                    <ComboBoxItem Name="StringReplace"  Content="String Replace"/>
                    <ComboBoxItem Name="LookupReplace" Content="Lookup Replace"/>
                    <ComboBoxItem Name="ExternalLookupReplace" Content=" External Lookup Replace"/>
                </ComboBox>
            </StackPanel>
            <ScrollViewer MaxHeight="500">
                <Border  BorderThickness="1" BorderBrush="Black" Name="RuleEditorControlBorder">
                </Border>
            </ScrollViewer>
        </StackPanel>
        <Grid Grid.Row="2">
            <Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="1" />
            <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,79,0" Grid.Row="1" />
        </Grid>
    </Grid>
</controls:ChildWindow>